/* 弹窗容器 */
.mpopup {
  width: 100%;
  max-width: 800px;
  background: #fff;
  margin: 20px auto;
  border-radius: 8px;
  overflow: hidden;
}

/* 弹窗主体 */
.mpopup-body {
  background: transparent;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: #fff;
  padding: 30rpx;
  overflow: auto;
}

/* 表头区域 */
.mpopup-body-thead {
  width: 100%;
  display: flex;
  justify-content: space-between;
  line-height: 60rpx;
  min-height: 80px;
  border-bottom: 1rpx solid #757575;
}

.mpopup-body-thead-name {
  width: 25.8%;
  font-size: 16px;
  text-align: center;
  background-color: #e5ecff;
  border-top: 1rpx solid #757575;
  border-left: 1rpx solid #757575;
}

.mpopup-body-thead-other {
  width: 74.2%;
  display: flex;
  justify-content: space-between;
}

.mpopup-body-thead-other-accumulative {
  width: 100%;
  text-align: center;
  color: #0000fe;
  font-size: 16px;
  border-left: 1rpx solid #757575;
  border-right: 1rpx solid #757575;
  border-top: 1rpx solid #757575;
}

/* 表格主体 */
.mpopup-body-tbody {
  width: 100%;
}

.mpopup-body-tbody-tr {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.mpopup-body-tbody-tr-count {
  width: 51.6%;
  text-align: center;
  line-height: 60rpx;
  border-left: 1rpx solid #757575;
  border-right: 1rpx solid #757575;
  border-bottom: 1rpx solid #757575;
}

.mpopup-body-tbody-tr-others {
  width: 48%;
  display: flex;
  flex-direction: row;
  line-height: 60rpx;
}

.mpopup-body-tbody-tr-others-accumulative {
  width: 100%;
  text-align: center;
  font-size: 16px;
  color: #0000fe;
  border-right: 1rpx solid #757575;
  border-bottom: 1rpx solid #757575;
}

.mpopup-body-tbody-tr-name {
  width: 14%;
  word-break: break-word;
  display: flex;
  background-color: #e5ecff;
  font-size: 16px;
  justify-content: center;
  align-items: center;
  border: 1rpx solid #757575;
  border-top: none;
}

.mpopup-body-tbody-tr-other {
  width: 86%;
  display: flex;
  flex-direction: column;
}

.mpopup-body-tbody-tr-other-box {
  width: 100%;
  line-height: 60rpx;
  display: flex;
  justify-content: space-between;
  border-bottom: 1rpx solid #757575;
}

.mpopup-body-tbody-tr-other-box-unit {
  width: 13.8%;
  font-size: 15px;
  text-align: center;
  background-color: #e5ecff;
  border-right: 1rpx solid #757575;
}

.mpopup-body-tbody-tr-other-box-accumulative {
  width: 86%;
  text-align: center;
  font-size: 15px;
  color: #0000fe;
  border-right: 1rpx solid #757575;
}

/* 签名容器 */
.signature-container {
  padding: 32rpx;
  background: #ffffff;
}

/* 虚线容器 */
.dashed-box {
  width: 100%;
  margin: 24rpx auto;
  padding: 32rpx;
  border: 2rpx dashed #333;
  border-radius: 10rpx;
  background: #fff;
  position: relative;
}

.dashed-box + .dashed-box {
  margin-top: 48rpx;
}

.dashed-box2 {
  width: 100%;
  margin: 24rpx auto;
  padding: 12rpx;
  border: 2rpx dashed #333;
  border-radius: 10rpx;
  background: #fff;
  position: relative;
}

.dashed-box3 {
  width: 100%;
  border: 2rpx dashed #0055ff;
  border-radius: 10rpx;
  background: #e5ecff;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 标题行 */
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 68rpx;
}

.title-row .title {
  font-size: 16rpx;
  color: #333;
  font-weight: 500;
  margin-left: 10%;
}

/* 其他样式 */
.edit-btn .btn-text {
  color: #2196F3;
  font-size: 16rpx;
  margin-left: 60px;
  margin-right: 16rpx;
}

.underline {
  width: 380px;
  height: 2rpx;
  background: #333;
  bottom: -4rpx;
}

/* 日期行 */
.date-row {
  display: flex;
  justify-content: flex-end;
}

.date-item {
  position: relative;
  margin-left: 22rpx;
}

.date-item > * {
  display: block;
}

.edit-label {
  color: #2196F3;
  font-size: 16rpx;
  margin-left: 10px;
  margin-bottom: 3rpx;
}

.date-underline {
  width: 60rpx;
  height: 2rpx;
  background: #333;
  position: relative;
}

.date-unit {
  position: absolute;
  right: -15rpx;
  bottom: 5rpx;
  font-size: 16rpx;
  color: #666;
  white-space: nowrap;
}

/* 签章区域 */
.stamp-section {
  margin-top: 64rpx;
  padding: 32rpx;
  background: #fff;
  border-radius: 16rpx;
}

.stamp-title {
  display: block;
  font-size: 16rpx;
  color: #333;
  margin-bottom: 32rpx;
}

.stamp-control {
  display: flex;
  align-items: center;
  margin: 24rpx 0;
}

.electronic-switch {
  transform: scale(0.8);
}

.switch-label {
  flex: 1;
  font-size: 16rpx;
  color: #666;
  white-space: pre-wrap;
}

.stamp-btn {
  width: 100%;
  height: 80rpx;
  line-height: 80rpx;
  font-size: 32rpx;
  background: #2196F3;
  color: #fff;
  border-radius: 40rpx;
}